﻿using Core.Framework.Model.WebSockets;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.Web.Controllers.Queue
{
    /// <summary>
    /// 推送接收参数
    /// </summary>
    public class QueryMessageRequest
    {
        /// <summary>
        /// 消息是否必须到达
        /// 默认为 “是”
        /// 如果为 “否” 则不存在订阅消息时抛弃消息
        /// </summary>
        public bool IsMustBeServed { get; set; } = true;

        /// <summary>
        /// 主题
        /// </summary>
        public string Template { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 消息Token
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 消息关键字
        /// </summary>
        public string MessageKey { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageTypeEnum MessageType { get; set; }

        /// <summary>
        /// 消息[属性]参数
        /// </summary>
        public string Parameter { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendDateTime { get; set; } = DateTime.Now;

    }
}
